package com.competition.system.dao;

import com.competition.system.pojo.Student;
import com.competition.system.pojo.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author Lyq
 * @version 1.0
 * @create 2020/12/16 0:54
 */
public interface UserDao extends JpaRepository<User, Long> {

    public Optional<User> findByAccountAndPasswordAndPower(String account, String password, String power);
    public Optional<User> findByName(String name);
    public Optional<User> findByAccount(String account);

}
